<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Services\Admin\Index;

class IndexController extends Controller
{
    public function Index()
    {
        return view('admin.index.index');
    }

    public function home()
    {

        if(\request()->ajax())return self::success(Index::index());

        return view('admin.home.home');

    }
}
